<template>
<div>
<h2 class='name' @click='showName'>我是{{name}}</h2>
<h2 class='name'>我今年{{age}}岁</h2>
</div>
</template>

<script>
// 引入一个混合
import {a} from '../mixin.js'
export default {
    name:'School',
    data(){
        return {
            name:'东软',
            age:'18'
        }
    },
    // 用混合要一个新的配置项，叫mixins
    mixins:[a]
}
</script>


<style>
    .name{
        background: lightblue;
    }
</style>